<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_validator = $show_scroll = $show_dialog = 1;
include $this->admin_tpl('header', 'admin');
?>
<h3 style="padding-left: 20px;padding-top: 10px">
<?php echo $course_info['name']?>——详情
<a href="javascript:history.back(-1);" style="font-size:14px;color: #0000FF"><em>返回上一级</em></a>
</h3>
	<div class="pad-10">
		<div class="col-tab">
			<div id="div_info_1" class="contentList pad-10">
				<table width="100%" class="table_form ">
					<tbody>
						<tr>
							<th width="200"><?php echo L('course_name')?>：</th>
							<td><?php echo $course_info['name']?></td>
						</tr>
						<tr>
							<th><?php echo L('course_agency')?>：</th>
							<td><?php echo $agency_new[$course_info['agency_id']]?></td>
						</tr>
						<tr>
							<th><?php echo L('course_class')?>：</th>
							<td>
								<?php 
								$day = array(
										'1'=>'周一',
										'2'=>'周二',
										'3'=>'周三',
										'4'=>'周四',
										'5'=>'周五',
										'6'=>'周六',
										'7'=>'周日',
								);
								$course_day = explode(',', $course_info['course_day']);
								foreach ($course_day as $k=>$v){
									$course_day[$k] = $day[$v];
								}
								$course_class = implode(',', $course_day);
								echo $course_class;
								?>
							</td>
						</tr>
						<tr>
							<th><?php echo L('type')?>：</th>
							<td><?php if($course_info['type']==1){echo '少儿课程';}elseif ($course_info['type']==2){echo '成人课程';}else{echo '<font color="red">(暂未设置)</font>';}?></td>
						</tr>
						<tr>
							<th><?php echo L('course_image_square')?>：</th>
							<td><img height="150px" alt="" src="<?php echo $course_info['image_square']?>" onerror="javascript:this.src='<?php echo IMG_PATH?>/nopic.gif'"></td>
						</tr>
						<tr>
							<th><?php echo L('course_image_horizontal')?>：</th>
							<td><img height="150px" alt="" src="<?php echo $course_info['image_horizontal']?>" onerror="javascript:this.src='<?php echo IMG_PATH?>/nopic.gif'"></td>
						</tr>
						<tr>
							<th><?php echo L('course_image_vertical')?>：</th>
							<td><img height="150px" alt="" src="<?php echo $course_info['image_vertical']?>" onerror="javascript:this.src='<?php echo IMG_PATH?>/nopic.gif'"></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('course_price')?>：</th>
							<td><?php echo $course_info['price']?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('period')?>：</th>
							<?php if(!empty($course_info['period'])){?>
							<td><?php echo $course_info['period']?></td>
							<?php }else{?>
							<td><font color="red">(暂未设置)</font></td>
							<?php }?>
						</tr>
						<tr>
							<th width="200"><?php echo L('course_period')?>：</th>
							<?php if(!empty($course_info['course_period'])){?>
							<td><?php echo $course_info['course_period']?></td>
							<?php }else{?>
							<td><font color="red">(暂未设置)</font></td>
							<?php }?>
						</tr>
						<tr>
							<th width="200"><?php echo L('course_time')?>：</th>
							<?php if(!empty($course_info['course_time'])){?>
							<td><?php echo $course_info['course_time']?></td>
							<?php }else{?>
							<td><font color="red">(暂未设置)</font></td>
							<?php }?>
						</tr>
						<tr>
							<th width="200"><?php echo L('course_object')?>：</th>
							<td><?php echo $course_info['object']?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('course_target')?>：</th>
							<td><?php echo $course_info['target']?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('course_special')?>：</th>
							<td><?php echo $course_info['special']?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('course_content')?>：</th>
							<td><?php echo $course_info['content']?></td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
</div>
</body>
</html>